export interface IViewItem {
  Name: string;
  FilePath: string;
  RoutePath: string;
  Icon: string;
  ShowName: string;
}

export class ViewItems {
  private static instance: ViewItems;
  private group: IViewItem[];

  private constructor() {
    this.group = [];

    this.group.push({
      Name: "Home",
      FilePath: "Home.vue",
      RoutePath: "/",
      Icon: "mdi-home",
      ShowName: "首页"
    });

    this.group.push({
      Name: "About",
      FilePath: "About.vue",
      RoutePath: "/About",
      Icon: "mdi-information",
      ShowName: "关于"
    });

    this.group.push({
      Name: "NumGuess",
      FilePath: "NumGuess.vue",
      RoutePath: "/NumGuess",
      Icon: "mdi-nintendo-switch",
      ShowName: "猜数字"
    });
    this.group.push({
      Name: "NumCompare",
      FilePath: "NumCompare.vue",
      RoutePath: "/NumCompare",
      Icon: "mdi-sony-playstation",
      ShowName: "比大小"
    });

    this.group.push({
      Name: "Test",
      FilePath: "Test.vue",
      RoutePath: "/Test",
      Icon: "mdi-test-tube",
      ShowName: "测试"
    });
    this.group.push({
      Name: "GameHistory",
      FilePath: "GameHistory.vue",
      RoutePath: "/GameHistory",
      Icon: "mdi-history",
      ShowName: "游戏历史数据"
    });
  }

  public static Instance(): ViewItems {
    if (!ViewItems.instance) {
      ViewItems.instance = new ViewItems();
    }
    return ViewItems.instance;
  }

  get Group(): IViewItem[] {
    return this.group;
  }
}
